package HomeWork2.GirlFriend;

public class GirlFriend2 {
    private String name;
    private double height;
    private double weight;
    public GirlFriend2(String name, double height, double weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public  void show(){
        System.out.println("我的女朋友叫"+getName()+",身高"+getHeight()+"厘米"+",体重"+getWeight()+"斤");
    }
    public void wash(){
        System.out.println("女朋友帮我洗衣服");
    }
    public void cook(){
        System.out.println("女朋友帮我做饭");
    }
}
